package businesslogic.returngoods;

import java.util.Vector;

public class ReturnConnect {
	
	ReturnController controller;
	
	
	public ReturnConnect(String clerkID){
		controller=new ReturnController(clerkID);
	}
	
	public int isVip(String vipID){
		return controller.isVip(vipID);
	}

	public String canReturn(String id){
		return controller.canBeReturned(id);
	}
	
	public Vector getSaleInfor(){
		return controller.show();
	}
	public String findGoods(String goodsID,String num){
		return controller.canReturnGoods( goodsID, Integer.parseInt(num));
	}
	public Vector showReturn(String id,String num){
		return controller.returnGoods(id, Integer.parseInt(num));
	}
	public String getPrice(){
		return String.valueOf(controller.getPrice());
	}
	public void over(){
		controller.update();
	}
	/*public Object[] getGoods(){
		return controller.getGoods();
	}
	
	public double backReturn(String saleRecord,String goodsID,String goodsNum){
		return controller.backReturn(saleRecord, goodsID, goodsNum);
	}

	public void ok(){
		controller.ok();
	}*/

}
